package com.example.demo.data.jpa.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.example.demo.data.jpa.entity.Persion;

public interface PersionDao extends JpaRepository<Persion,String> {

	List<Persion> findByNameContaining(String name);
	
	
	@Query("select p from Persion p where p.name like ?1")
	List<Persion> findByName(String name);
	

}
